const mongoose = require('./db.js');//引入数据库连接模块

const Schema = mongoose.Schema;//拿到数据库对应的集合对象

const bookDetailSchema = new Schema({
  
    玄幻_奇幻: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    修真_仙侠: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    都市_青春: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    言情_穿越: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    网游_竞技: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    修真_仙侠: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    侦探_推理: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },
    其他类别: {
        已完结:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}],
        连载中:[{_id: {type:String},
            author: {type:String},
            cover: {type:String},
            longIntro: {type:String},
            title: {type:String},
            zt: {type:String},
            cat: {type:String},
            wordCount: {type:String},
            retentionRatio: {type:String},
            followerCount: {type:String},
            updated: {type:String},
            chaptersCount: {type:String},
            lastChapter: {type:String}}]
    },




})//设计用户集合的字段以及数据类型


module.exports = mongoose.model('bookdetail', bookDetailSchema);
  